#include <stdio.h>
#include <iostream>
#include <string>


void inverted(char* str, int lenght){	
	char sym;
	for( int i = 0; i < lenght/2; i++){
		sym = str[i];
		str[i] = str[lenght - 1 - i];
		str[lenght - 1 - i] = sym;
	}
}


int main()
{	
	char str[10];
	printf( "Enter the line: \n" );
	scanf("%s", str);
	printf("%d \n", sizeof(str));
	printf("%d \n", strlen(str));
	inverted(str, strlen(str));
	printf("%s \n", str);
	printf("%d \n", sizeof(str));
	printf("%d \n", strlen(str));
	system("pause");
	return 0;
}// the end main


